package leetcode

func singleNumber(nums []int) int {
	res := nums[0]
	for i:=1;i<len(nums);i++{
		res^=nums[i]
	}
	return res
}
